package com.itboye.pondteam.utils;

import android.app.Activity;

/**
 * Created by Mr.w on 2017/3/4.
 */

public class ScreenUtil {
    public static int[] getPhoneSize(Activity activity) {
        int[] size = new int[2];
        size[0] = activity.getWindowManager().getDefaultDisplay().getWidth();
        size[1] = activity.getWindowManager().getDefaultDisplay().getHeight();
        return size;
    }
}
